package io.renren.service;


import io.renren.common.service.CrudService;
import io.renren.dto.AutoDTO;
import io.renren.entity.AutoEntity;

import java.util.List;
import java.util.Map;

/**
 * 车辆信息主表
 *
 * @author Sen 524227263@qq.com
 * @since 1.0.0 2024-05-22
 */
public interface AutoService extends CrudService<AutoEntity, AutoDTO> {

    Boolean isExByFk(String tradermFk);

    AutoEntity findOneByAutoFrameNum(String autoFrameNum);

    AutoEntity findOneByAutoNo(String autoNo);

    Long findOneByTraderMFkByTraderMOID(String traderMOID);

    void createInfo(AutoEntity newInfo);

    void updateInfo(AutoEntity autoEntity);

    AutoEntity findOneByAutoOID(String autoFk);

    List<Map<String, Object>> getMapByTraderMFk(String traderMOID);

    void setAutoDefault(String traderMOID, String autoOID);

    Map<String, Object> myAutoInfo(String traderMOID, String autoOID);

    void myAutoEdit(String traderMOID, String autoOID);

    Long findOneByTraderMFkByAutoFrameNum(String autoframenum);

    void deleteByAutoOIDAndTraderMDK(String traderMOID, String autoOID);
}